package com.vincent.template.commons.constanst;

/**
 * http请求方式
 * @Author Vincent Wang
 * @Date 2020/10/21 17:58
 */
public enum RequestMode implements EnumCheck {

    /**
     * GET请求
     */
    GET,
    /**
     * POST请求
     */
    POST,
    /**
     * PUT请求
     */
    PUT,
    /**
     * DELETE请求
     */
    DELETE;

    @Override
    public boolean exists(String value) {
        for (RequestMode mode : RequestMode.values()) {
            if (mode.name().equals(value)) {
                return true;
            }
        }
        return false;
    }
}
